import Vue from "vue"
import Vuex from "vuex"
import user from "./modules/user"
import product from './modules/product'
import windowInfo from './modules/windowInfo'

Vue.use(Vuex)

export default new Vuex.Store({
    modules: {
      // 注册modules中的模块
      user,
      product,
      windowInfo
    }
})